/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 29489
 * Date: 2023-04-13
 * Time: 9:37
 */
import java.util.Scanner;
import java.lang.Math;
public class Main {
//    public static void main(String[] args) {
//        Vehicle v[] = {new Vehicle(5, 0, 800), new Vehicle(5, 0, 400),
//                new Vehicle(5, 0, 800), new Vehicle(51, 0, 1300),
//                new Vehicle(55, 0, 1500), new Vehicle(5, 0.45, 500),
//                new Vehicle(5, 2.0, 450), new Vehicle(0, 3, 200),
//                new Vehicle(0, 25, 1500), new Vehicle(0, 35, 2000)};
//
//        Scanner sc = new Scanner(System.in);
//        int option = sc.nextInt();
//        if(option == 0){
//            System.out.println("0 0.00 0");
//            System.exit(0);
//        }
//        else if(option == 1){
//            int sumPeople = 0;
//            double sumWeight = 0.0;
//            int sumRent = 0;
//
//            int num = sc.nextInt();
//            for(int i = 0; i < num; ++i){
//                int f = sc.nextInt();
//                int days = sc.nextInt();
//
//                if(f < 1 || f > 10 || days < 1){
//                    System.out.println("0 0.00 0");
//                    System.exit(0);
//                }
//
//                sumPeople += v[f-1].getPeopleNum()*days;
//                sumWeight += v[f-1].getCargoCapacity()*days;
//                sumRent += v[f-1].getRent()*days;
//            }
//            System.out.printf("%d %.2f %d", sumPeople, sumWeight, sumRent);
//        }
//    }
//    public static void main(String[] args) {
//        Faculty fac = new Faculty("张三", 32, "33006", 2021, 9, 1, "讲师");
//        Student stu = new Student("李四", 19, "20201103", "202011");
//        Staff sta = new Staff("王五", 27, "32011", 2017, 7, 23, "教务员");
//        fac.show();
//        sta.show();
//        stu.show();
//    }
    public static void main(String[] arge){
        Scanner sc = new Scanner(System.in);

    //         int sidelength = sc.nextInt();
    //         int length = sc.nextInt();
    //         int width = sc.nextInt();
    //         int radius = sc.nextInt();

        Square sq = new Square(sc.nextDouble());
        Rectangle rec = new Rectangle(sc.nextDouble(), sc.nextDouble());
        Circle cir = new Circle(sc.nextDouble());

        System.out.printf("%.2f %.2f\n", sq.getPerimeter(), sq.getArea());
        System.out.printf("%.2f %.2f\n", rec.getPerimeter(), rec.getArea());
        System.out.printf("%.2f %.2f\n", cir.getPerimeter(), cir.getArea());
    }
}
